package com.yangtao.prototype.master.constant.service;

import java.util.ArrayList;
import java.util.List;

import com.yangtao.framework.constant.Option;
import com.yangtao.framework.web.BaseModel;
import com.yangtao.prototype.master.entity.Constant;

public class ConstantModel extends BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Constant domain;

	private String code;

	private List<Option> constantList;

	public List<Option> getConstantList() {
		if (constantList == null)
			constantList = new ArrayList<Option>();
		return constantList;
	}

	public void setConstantList(List<Option> constantList) {
		this.constantList = constantList;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setDomain(Constant domain) {
		this.domain = domain;
	}

	@Override
	public Constant getDomain() {
		if (domain == null)
			domain = new Constant();
		return domain;
	}

}
